package CoursePracticCode;
import java.util.Scanner;
public class Plane {
    public static void main(String[] args)

    {
        PlaneMthode pl = new PlaneMthode();
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入出行的月份：");
        pl.setMonth(sc.nextInt());

        System.out.println("请输入机票的类型，输入0是头等舱，1是经济舱");
        pl.setSelect(sc.nextInt());
        System.out.println("请输入飞机票原来的价钱：");
        pl.setPrice(sc.nextDouble());
//        pl.travel_In(pl.getMonth());
        pl.catelogy(pl.getMonth());
        System.out.println("你所需要支付机票的钱为："+pl.select_price(pl.catelogy(pl.getMonth()),pl.getSelect(),pl.getPrice()));

    }

}
